import request from '@/utils/request'

// 开始情绪识别
export function startEmotionDetection(data) {
  return request({
    url: '/emotion/detection/start',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 获取识别结果
export function getDetectionResult(taskId) {
  return request({
    url: '/emotion/detection/result/' + taskId,
    method: 'get'
  })
}

// 保存识别结果
export function saveDetectionResult(data) {
  return request({
    url: '/emotion/detection/save',
    method: 'post',
    data: data
  })
} 